namespace Ds.DataBase.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class 教职工更新 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.JiaoZhiGongInfoes", "XingBie", c => c.Int(nullable: false));
            AddColumn("dbo.JiaoZhiGongInfoes", "keshi_ksid", c => c.Int());
            CreateIndex("dbo.JiaoZhiGongInfoes", "keshi_ksid");
            AddForeignKey("dbo.JiaoZhiGongInfoes", "keshi_ksid", "dbo.KeShis", "ksid");
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.JiaoZhiGongInfoes", "keshi_ksid", "dbo.KeShis");
            DropIndex("dbo.JiaoZhiGongInfoes", new[] { "keshi_ksid" });
            DropColumn("dbo.JiaoZhiGongInfoes", "keshi_ksid");
            DropColumn("dbo.JiaoZhiGongInfoes", "XingBie");
        }
    }
}
